package com.zjcode.oa.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @ClassName:OaApiApplication
 * @功能：
 * @author：wlei
 * @日期：2022/4/30-17:44
 **/
@SpringBootApplication(scanBasePackages = "com.zjcode.oa.api")
@EnableDiscoveryClient
//开启Feign支持
@EnableFeignClients
@Slf4j
public class OaApiApplication implements CommandLineRunner {
    public static void main(String[] args) {
        log.info("启动oa-api服务启动开始");
        SpringApplication.run(OaApiApplication.class, args);
        log.info("启动oa-api服务启动完成");
    }

    @Override
    public void run(String... args) throws Exception {

    }
}
